﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SpiderServer;
using System.Net;

namespace CommandLine
{
	class Program
	{
		static void Main(string[] args)
		{
			string s = "1234567890qwertyuiopasdfghjklzxcvbnm-_";
			for (int x = 1; x <= 10; x++)
			{
				fun(s, new char[x], 0);
			}
		}

		static void fun(string source, char[] str, int position)
		{
			if (position >= str.Length)
			{
				WebClient wc = new WebClient();
				foreach (string dom in new string[] { "com","net","com.cn","cn" })
				{
					string s = string.Format("http://115.236.102.71:8016/tool/PushUrl.ashx?jobid={0}&urls={1}", 7, System.Web.HttpUtility.UrlEncode("http://domaincheck.cndns.com/domaincheck.asp?checkdme=" + new string(str) + "." + dom));
					wc.OpenRead(s);
				}
				Console.WriteLine(str);
			}
			else
			{
				for (int i = 0; i < source.Length; i++)
				{
					str[position] = source[i];
					fun(source, str, position + 1);
				}
			}
		}

	}
}
